package ro.pub.cs.dfsa.server.connection;

import java.io.IOException;
import java.net.ServerSocket;

import ro.pub.cs.dfsa.client.connection.AbstractClientConnection;
import ro.pub.cs.dfsa.client.connection.TCPClientConnection;
import ro.pub.cs.dfsa.client.connection.UDPClientConnection;

public class UDPServerConnection extends AbstractServerConnection {

	UDPClientConnection connection;
	
    public UDPServerConnection() {       
    }
    
    @Override
    public void createListener() throws IOException {
    	connection = new UDPClientConnection();
    	connection.setServerPort(clientPort);
    }
    
    @Override
    public AbstractClientConnection getClient() {
    	return connection;
    }
    
    @Override
    public void close() throws IOException {
    	//serverSocket.close();
    }
}

